<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>比较运算</title>
  </head>
  <body>
    <!-- > < >= <= == != === !== -->
    <!-- 比较运算的结果是布尔值 -->
    <script>
      console.log(2 > 3); //false
      console.log(2 < 3); //true
      console.log(2 >= 3); //false
      console.log(2 <= 3); //true
      console.log("====================");

      //   值等（字面量相等）
      console.log(2 == "2"); //true

      //   全等（字面量与类型都相等）
      console.log(2 === "2"); //false
      console.log("====================");

      //不值等
      console.log(2 != "2"); //false
      //不全等
      console.log(2 !== "2"); //true
    </script>
  </body>
</html>
